home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume21 / amd / part01 next >
Encoding:
Internet Message Format  |  1990-04-10  |  61.0 KB

  1. Subject:  v21i089:  An Automounter for NFS systems, Part01/13
  2. Newsgroups: comp.sources.unix
  3. Approved: rsalz@uunet.UU.NET
  4. X-Checksum-Snefru: 3f6d7521 42849030 227d4c9f 64fa663d
  5.  
  6. Submitted-by: Jan-Simon Pendry <jsp@doc.ic.ac.uk>
  7. Posting-number: Volume 21, Issue 89
  8. Archive-name: amd/part01
  9.  
  10. AMD is a daemon that automatically mounts filesystems whenever a file or
  11. directory within that filesystem is accessed.  Filesystems are
  12. automatically unmounted when they appear to have become quiescent.
  13.  
  14. AMD has been designed as a value-added replacement for the SunOS 4
  15. automount(8) program.  Though based on that program in spirit, it contains
  16. no Copyright UN*X source code.  This program is NOT in the Public Domain.
  17.  
  18. Considerable design effort has been expended in making AMD robust in the
  19. face of NFS servers going down.  AMD operates by attaching itself as an
  20. NFS server to each of the specified directories.
  21.  
  22. The version you have here is release 5.1c.
  23.  
  24. It is believed to work correctly on Sun-3's (SunOS 3.5 and 4.0), Sun-4's
  25. (SunOS 4.0), HP-9000/300 (HP-UX 6.x & MORE/bsd), IBM RT PCs (AOS 4.3),
  26. VAXen (Ultrix 2.2, 3.0 & MORE/bsd), Mac-II (A/UX), Acorn Archimedes (RISC
  27. iX), Encore Multimax (Umax 4.3) and Alliant FX/4 (Concentrix 5.0.0).  It
  28. may work on other UN*X variants -- please feel free to try a port, but be
  29. sure to send me a record of the changes you had to make.
  30.  
  31. See the file INSTALL for installation instructions.
  32.  
  33. #! /bin/sh
  34. # This is a shell archive.  Remove anything before this line, then unpack
  35. # it by saving it into a file and typing "sh file".  To overwrite existing
  36. # files, type "sh file -c".  You can also feed this as standard input via
  37. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  38. # will see the following message at the end:
  39. #        "End of archive 1 (of 13)."
  40. # Contents:  COPYRIGHT Configure MANIFEST Makefile.bsd44 Makefile.hpux
  41. #   PACKNOTES README RELEASE WishList amd.start.ex arch doc
  42. #   doc/amd.bbl examples examples/am.master examples/amd.home
  43. #   examples/amd.vol info_ndbm.c mount.h newvers.sh os-acis43.h
  44. #   os-concentrix.h os-hlh42.h os-riscix.h os-sos3.h os-sos4.h
  45. #   os-umax43.h os-utx32.h patchlevel.h rcs_info.c scripts
  46. #   scripts/auto-banner scripts/build-userinfo scripts/get-homes
  47. #   u2_2-nfs.h
  48. # Wrapped by rsalz@papaya.bbn.com on Tue Apr 10 15:11:57 1990
  49. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  50. if test -f 'COPYRIGHT' -a "${1}" != "-c" ; then 
  51.   echo shar: Will not clobber existing file \"'COPYRIGHT'\"
  52. else
  53. echo shar: Extracting \"'COPYRIGHT'\" \(170 characters\)
  54. sed "s/^X//" >'COPYRIGHT' <<'END_OF_FILE'
  55. XCopyright (c) 1990 Jan-Simon Pendry
  56. XCopyright (c) 1990 Imperial College of Science, Technology & Medicine
  57. XCopyright (c) 1990 The Regents of the University of California.
  58. END_OF_FILE
  59. if test 170 -ne `wc -c <'COPYRIGHT'`; then
  60.     echo shar: \"'COPYRIGHT'\" unpacked with wrong size!
  61. fi
  62. # end of 'COPYRIGHT'
  63. fi
  64. if test -f 'Configure' -a "${1}" != "-c" ; then 
  65.   echo shar: Will not clobber existing file \"'Configure'\"
  66. else
  67. echo shar: Extracting \"'Configure'\" \(1713 characters\)
  68. sed "s/^X//" >'Configure' <<'END_OF_FILE'
  69. X#!/bin/sh -
  70. X#
  71. X# Copyright (c) 1989 Jan-Simon Pendry
  72. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  73. X# Copyright (c) 1989 The Regents of the University of California.
  74. X# All rights reserved.
  75. X#
  76. X# This code is derived from software contributed to Berkeley by
  77. X# Jan-Simon Pendry at Imperial College, London.
  78. X#
  79. X# Redistribution and use in source and binary forms are permitted
  80. X# provided that the above copyright notice and this paragraph are
  81. X# duplicated in all such forms and that any documentation,
  82. X# advertising materials, and other materials related to such
  83. X# distribution and use acknowledge that the software was developed
  84. X# by Imperial College of Science, Technology and Medicine, London, UK.
  85. X# The names of the College and University may not be used to endorse
  86. X# or promote products derived from this software without specific
  87. X# prior written permission.
  88. X# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  89. X# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  90. X# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  91. X#
  92. X#    %W% (Berkeley) %G%
  93. X#
  94. Xecho "Making ./arch and ./os-type executable ..."
  95. Xuntil chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done
  96. Xecho "Checking ./arch and ./os-type ..."
  97. Xecho ""
  98. Xarch="`sh ./arch 2>/dev/null`"
  99. Xos="`sh ./os-type 2>/dev/null`"
  100. Xcase "$arch" in
  101. X"") echo "./arch doesn't produce an answer - please check it" >&2; exit 1;;
  102. Xesac
  103. Xcase "$os" in
  104. X"") echo "./os-type doesn't produce an answer - please check it" >&2; exit 1;;
  105. Xesac
  106. Xcat << %
  107. XThis machine appears to be a "$arch" running "$os".
  108. XIf that is correct just run make.
  109. XIf those are incorrect please edit ./arch and ./os-type
  110. X%
  111. Xexit 0
  112. END_OF_FILE
  113. if test 1713 -ne `wc -c <'Configure'`; then
  114.     echo shar: \"'Configure'\" unpacked with wrong size!
  115. fi
  116. chmod +x 'Configure'
  117. # end of 'Configure'
  118. fi
  119. if test -f 'MANIFEST' -a "${1}" != "-c" ; then 
  120.   echo shar: Will not clobber existing file \"'MANIFEST'\"
  121. else
  122. echo shar: Extracting \"'MANIFEST'\" \(3428 characters\)
  123. sed "s/^X//" >'MANIFEST' <<'END_OF_FILE'
  124. X   File Name        Archive #    Description
  125. X-----------------------------------------------------------
  126. X COPYRIGHT                  1    
  127. X ChangeLog                 10    
  128. X Configure                  1    
  129. X INSTALL                    6    
  130. X MANIFEST                   1    
  131. X Makefile                   2    
  132. X Makefile.bsd44             1    
  133. X Makefile.com               7    
  134. X Makefile.config            2    
  135. X Makefile.hpux              1    
  136. X PACKNOTES                  1    Warnings about long lines, etc
  137. X README                     1    
  138. X RELEASE                    1    
  139. X WishList                   1    
  140. X a_master                   2    
  141. X afs_ops.c                 12    
  142. X am.c                       5    
  143. X am.h                       9    
  144. X am_ops.c                   3    
  145. X amd-man                    5    
  146. X amd.start.ex               1    
  147. X amq-man                    2    
  148. X amq.c                      7    
  149. X amq.h                      3    
  150. X amq.x                      4    
  151. X amq_clnt.c                 3    
  152. X amq_subr.c                 5    
  153. X amq_svc.c                  2    
  154. X amq_xdr.c                  4    
  155. X arch                       1    
  156. X clock.c                    4    
  157. X doc                        1    
  158. X doc/amd.bbl                1    
  159. X doc/amd.bib                4    
  160. X doc/amd.tex.1             13    (part 1)
  161. X doc/amd.tex.2             11    (part 2)
  162. X doc/nh.doc                 4    
  163. X doc/nh.sty                 3    
  164. X efs_ops.c                  2    
  165. X examples                   1    
  166. X examples/am.master         1    
  167. X examples/amd.home          1    
  168. X examples/amd.homes         8    
  169. X examples/amd.vol           1    
  170. X fs.h                       2    
  171. X get_args.c                 7    
  172. X hpux.h                     2    
  173. X ifs_ops.c                  3    
  174. X info_file.c                4    
  175. X info_hes.c                 2    
  176. X info_ndbm.c                1    
  177. X info_yp.c                  2    
  178. X map.c                     10    
  179. X mapc.c                     7    
  180. X misc_rpc.c                 6    
  181. X mk-amd-map.c               5    
  182. X mntfs.c                    5    
  183. X mount.h                    1    
  184. X mount.x                    3    
  185. X mount_fs.c                 4    
  186. X mount_xdr.c                3    
  187. X mtab.c                     8    
  188. X newvers.sh                 1    
  189. X nfs_ops.c                  9    
  190. X nfs_prot.h                 5    
  191. X nfs_prot.x                 5    
  192. X nfs_prot_svc.c             4    
  193. X nfs_prot_xdr.c             6    
  194. X nfs_start.c                6    
  195. X nfs_stubs.c                6    
  196. X opts.c                     8    
  197. X os-acis43.h                1    
  198. X os-aux.h                   2    
  199. X os-bsd44.h                 3    
  200. X os-concentrix.h            1    
  201. X os-defaults.h              2    
  202. X os-hlh42.h                 1    
  203. X os-hpux.h                  2    
  204. X os-riscix.h                1    
  205. X os-sos3.h                  1    
  206. X os-sos4.h                  1    
  207. X os-type                    2    
  208. X os-u2_2.h                  3    
  209. X os-u3_0.h                  3    
  210. X os-umax43.h                1    
  211. X os-utx32.h                 1    
  212. X os-xinu43.h                2    
  213. X patchlevel.h               1    
  214. X pfs_ops.c                  3    
  215. X rcs_info.c                 1    
  216. X restart.c                  4    
  217. X rpc_fwd.c                  6    
  218. X sched.c                    4    
  219. X scripts                    1    
  220. X scripts/auto-banner        1    
  221. X scripts/build-userinfo     1    
  222. X scripts/get-homes          1    
  223. X scripts/mk-home-maps       3    
  224. X sfs_ops.c                  2    
  225. X srvr_afs.c                 3    
  226. X srvr_nfs.c                 8    
  227. X u2_2-nfs.h                 1    
  228. X ufs_ops.c                  3    
  229. X umount_fs.c                2    
  230. X util.c                     9    
  231. X uwait.h                    2    
  232. END_OF_FILE
  233. if test 3428 -ne `wc -c <'MANIFEST'`; then
  234.     echo shar: \"'MANIFEST'\" unpacked with wrong size!
  235. fi
  236. # end of 'MANIFEST'
  237. fi
  238. if test -f 'Makefile.bsd44' -a "${1}" != "-c" ; then 
  239.   echo shar: Will not clobber existing file \"'Makefile.bsd44'\"
  240. else
  241. echo shar: Extracting \"'Makefile.bsd44'\" \(1224 characters\)
  242. sed "s/^X//" >'Makefile.bsd44' <<'END_OF_FILE'
  243. X#
  244. X# $Id: Makefile.bsd44,v 5.1 89/11/17 18:22:49 jsp Exp Locker: jsp $
  245. X#
  246. X# Copyright (c) 1989 Jan-Simon Pendry
  247. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  248. X# Copyright (c) 1989 The Regents of the University of California.
  249. X# All rights reserved.
  250. X#
  251. X# This code is derived from software contributed to Berkeley by
  252. X# Jan-Simon Pendry at Imperial College, London.
  253. X#
  254. X# Redistribution and use in source and binary forms are permitted
  255. X# provided that the above copyright notice and this paragraph are
  256. X# duplicated in all such forms and that any documentation,
  257. X# advertising materials, and other materials related to such
  258. X# distribution and use acknowledge that the software was developed
  259. X# by Imperial College of Science, Technology and Medicine, London, UK.
  260. X# The names of the College and University may not be used to endorse
  261. X# or promote products derived from this software without specific
  262. X# prior written permission.
  263. X# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  264. X# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  265. X# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  266. X#
  267. X#    %W% (Berkeley) %G%
  268. X#
  269. X# Extra Makefile definitions for 4.4 BSD
  270. X#
  271. X
  272. XRPCLIB = -lrpc
  273. END_OF_FILE
  274. if test 1224 -ne `wc -c <'Makefile.bsd44'`; then
  275.     echo shar: \"'Makefile.bsd44'\" unpacked with wrong size!
  276. fi
  277. # end of 'Makefile.bsd44'
  278. fi
  279. if test -f 'Makefile.hpux' -a "${1}" != "-c" ; then 
  280.   echo shar: Will not clobber existing file \"'Makefile.hpux'\"
  281. else
  282. echo shar: Extracting \"'Makefile.hpux'\" \(1270 characters\)
  283. sed "s/^X//" >'Makefile.hpux' <<'END_OF_FILE'
  284. X#
  285. X# $Id: Makefile.hpux,v 5.1 89/11/17 18:23:01 jsp Exp Locker: jsp $
  286. X#
  287. X# Copyright (c) 1989 Jan-Simon Pendry
  288. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  289. X# Copyright (c) 1989 The Regents of the University of California.
  290. X# All rights reserved.
  291. X#
  292. X# This code is derived from software contributed to Berkeley by
  293. X# Jan-Simon Pendry at Imperial College, London.
  294. X#
  295. X# Redistribution and use in source and binary forms are permitted
  296. X# provided that the above copyright notice and this paragraph are
  297. X# duplicated in all such forms and that any documentation,
  298. X# advertising materials, and other materials related to such
  299. X# distribution and use acknowledge that the software was developed
  300. X# by Imperial College of Science, Technology and Medicine, London, UK.
  301. X# The names of the College and University may not be used to endorse
  302. X# or promote products derived from this software without specific
  303. X# prior written permission.
  304. X# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  305. X# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  306. X# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  307. X#
  308. X#    %W% (Berkeley) %G%
  309. X#
  310. X# Extra Makefile definitions for HP-UX
  311. X#
  312. X
  313. X#CC = gcc ${GCCOPTS}
  314. XCC = cc -Wc,-Nd2000
  315. XOLDCC = cc -Wc,-Nd2000
  316. END_OF_FILE
  317. if test 1270 -ne `wc -c <'Makefile.hpux'`; then
  318.     echo shar: \"'Makefile.hpux'\" unpacked with wrong size!
  319. fi
  320. # end of 'Makefile.hpux'
  321. fi
  322. if test -f 'PACKNOTES' -a "${1}" != "-c" ; then 
  323.   echo shar: Will not clobber existing file \"'PACKNOTES'\"
  324. else
  325. echo shar: Extracting \"'PACKNOTES'\" \(99 characters\)
  326. sed "s/^X//" >'PACKNOTES' <<'END_OF_FILE'
  327. XFile "doc/amd.tex" was split because of its size; to create it, do
  328. X    cat doc/amd.tex.? >doc/amd.tex
  329. END_OF_FILE
  330. if test 99 -ne `wc -c <'PACKNOTES'`; then
  331.     echo shar: \"'PACKNOTES'\" unpacked with wrong size!
  332. fi
  333. # end of 'PACKNOTES'
  334. fi
  335. if test -f 'README' -a "${1}" != "-c" ; then 
  336.   echo shar: Will not clobber existing file \"'README'\"
  337. else
  338. echo shar: Extracting \"'README'\" \(1238 characters\)
  339. sed "s/^X//" >'README' <<'END_OF_FILE'
  340. XThe program in this directory implements an automounter.
  341. X
  342. XThis automounter is a value-added, replacement for the SunOS 4
  343. Xautomount(8) program.  Though based on that program in spirit, it
  344. Xcontains no Copyright UN*X source code.
  345. X
  346. XThis program is NOT in the Public Domain.
  347. X
  348. XThe version you have here is release 5.1c.
  349. X
  350. XIt is believed to work correctly on Sun-3's (SunOS 3.5 and 4.0),
  351. XSun-4's (SunOS 4.0), HP-9000/300 (HP-UX 6.x & MORE/bsd), IBM RT PCs
  352. X(AOS 4.3), VAXen (Ultrix 2.2, 3.0 & MORE/bsd), Mac-II (A/UX), Acorn
  353. XArchimedes (RISC iX), Encore Multimax (Umax 4.3) and Alliant FX/4
  354. X(Concentrix 5.0.0).  It may work on other UN*X variants -- please feel
  355. Xfree to try a port, but be sure to send me a record of the changes you
  356. Xhad to make.
  357. X
  358. XSee the file INSTALL for installation instructions.
  359. X
  360. XPlease forward *all* bug reports to Jan-Simon Pendry <jsp@doc.ic.ac.uk>
  361. Xquoting the details of the release and your configuration, which can be
  362. Xobtained by running the command "amd -v".  Thanks.
  363. X
  364. XThe manual page (amd-man) only lists the command line options.  See the
  365. XLaTeX document doc/amd.tex for a more detailed discussion.
  366. X
  367. XSome tools in the scripts directory may be of interest.
  368. X
  369. X$Id: README,v 5.1.1.3 90/01/11 16:48:39 jsp Exp Locker: jsp $
  370. END_OF_FILE
  371. if test 1238 -ne `wc -c <'README'`; then
  372.     echo shar: \"'README'\" unpacked with wrong size!
  373. fi
  374. # end of 'README'
  375. fi
  376. if test -f 'RELEASE' -a "${1}" != "-c" ; then 
  377.   echo shar: Will not clobber existing file \"'RELEASE'\"
  378. else
  379. echo shar: Extracting \"'RELEASE'\" \(59 characters\)
  380. sed "s/^X//" >'RELEASE' <<'END_OF_FILE'
  381. X$Revision: 5.1.1.6 $ of $Date: 90/01/11 16:48:57 $ Rel5.1c
  382. END_OF_FILE
  383. if test 59 -ne `wc -c <'RELEASE'`; then
  384.     echo shar: \"'RELEASE'\" unpacked with wrong size!
  385. fi
  386. # end of 'RELEASE'
  387. fi
  388. if test -f 'WishList' -a "${1}" != "-c" ; then 
  389.   echo shar: Will not clobber existing file \"'WishList'\"
  390. else
  391. echo shar: Extracting \"'WishList'\" \(1500 characters\)
  392. sed "s/^X//" >'WishList' <<'END_OF_FILE'
  393. XMon May 22 17:30:55 BST 1989 -- jsp
  394. X
  395. X1.    NFS ping algorithm should know about alternative port numbers.
  396. X
  397. X2.    Inheriting file systems should be more intelligent in the case
  398. X    of a normal system fs.  Should it ever try to unmount it?
  399. X
  400. X3.    The exported_ap array may be a limiting factor in a large system.
  401. X    It should be made more dynamic.  It is really only there to
  402. X    make conversion between file handles and mount nodes faster.
  403. X
  404. XSun Jun  4 21:48:32 BST 1989 -- jsp
  405. X
  406. X5.    Prove there are no memory leaks in this beast.
  407. X
  408. XFri Jun  9 16:15:35 BST 1989 -- jsp
  409. X
  410. X6.    Allow more global defaults to be added with +Global -Local syntax.
  411. X
  412. XTue Jul  4 12:22:31 BST 1989 -- jsp
  413. X
  414. X7.    Allow aliases for built-in values, such as host name.
  415. X
  416. XFri Jul  7 16:21:39 BST 1989 -- jsp
  417. X
  418. X8.    Allow mount points to be added/deleted by amq.
  419. X9.    Allow default options to be changed by amq.
  420. X10.    Allow the map file to be changed by amq.
  421. X
  422. XMon Jul 17 20:34:23 BST 1989 -- jsp
  423. X
  424. X11.    Put the port number into /etc/mtab and let restart read it and
  425. X    try to re-use the same port number.
  426. X12.    Put all the option handling into amq and just interface via
  427. X    an RPC protocol to amd.  Makes 8-10 trivial to implement.
  428. X
  429. XThu Oct 26 17:27:51 BST 1989 -- jsp
  430. X
  431. X13.    amq should display current debug & trace levels (& orig)
  432. X
  433. XMon Dec  4 14:30:33 GMT 1989 -- rein@ifi.uio.no
  434. X
  435. X14.    amq should allow maps to be flushed like SIGHUP.
  436. X15.    the AM_PINGER value should be a command line argument.
  437. X
  438. XThu Dec 14 14:38:42 GMT 1989
  439. X
  440. X16.    amq should display all internal state of Amd.
  441. END_OF_FILE
  442. if test 1500 -ne `wc -c <'WishList'`; then
  443.     echo shar: \"'WishList'\" unpacked with wrong size!
  444. fi
  445. # end of 'WishList'
  446. fi
  447. if test -f 'amd.start.ex' -a "${1}" != "-c" ; then 
  448.   echo shar: Will not clobber existing file \"'amd.start.ex'\"
  449. else
  450. echo shar: Extracting \"'amd.start.ex'\" \(2009 characters\)
  451. sed "s/^X//" >'amd.start.ex' <<'END_OF_FILE'
  452. X#!/bin/sh -
  453. X#
  454. X# Start amd
  455. X#
  456. X# $Id: amd.start.ex,v 5.1 89/11/17 18:23:57 jsp Exp Locker: jsp $
  457. X#
  458. X# Copyright (c) 1989 Jan-Simon Pendry
  459. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  460. X# Copyright (c) 1989 The Regents of the University of California.
  461. X# All rights reserved.
  462. X#
  463. X# This code is derived from software contributed to Berkeley by
  464. X# Jan-Simon Pendry at Imperial College, London.
  465. X#
  466. X# Redistribution and use in source and binary forms are permitted
  467. X# provided that the above copyright notice and this paragraph are
  468. X# duplicated in all such forms and that any documentation,
  469. X# advertising materials, and other materials related to such
  470. X# distribution and use acknowledge that the software was developed
  471. X# by Imperial College of Science, Technology and Medicine, London, UK.
  472. X# The names of the College and University may not be used to endorse
  473. X# or promote products derived from this software without specific
  474. X# prior written permission.
  475. X# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  476. X# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  477. X# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  478. X#
  479. X#    %W% (Berkeley) %G%
  480. X#
  481. XPATH=/usr/local/etc:/bin:/usr/bin:/usr/ucb:$PATH export PATH
  482. X
  483. X#
  484. X# Either name of logfile or "syslog"
  485. X#
  486. X#LOGFILE=syslog
  487. XLOGFILE=/var/adm/am.log
  488. X
  489. X#
  490. X# Figure out whether domain name is in host name
  491. X# If the hostname is just the machine name then
  492. X# pass in the name of the local domain so that the
  493. X# hostnames in the map are domain stripped correctly.
  494. X#
  495. Xcase `hostname` in
  496. X*.*) dmn= ;;
  497. X*) dmn='-d doc.ic.ac.uk'
  498. Xesac
  499. X
  500. X#
  501. X# Zap earlier log file
  502. X#
  503. Xcase "$LOGFILE" in
  504. X*/*)
  505. X    mv "$LOGFILE" "$LOGFILE"-
  506. X    > "$LOGFILE"
  507. X    ;;
  508. Xsyslog)
  509. X    : nothing
  510. X    ;;
  511. Xesac
  512. X
  513. Xcd /usr/local/etc
  514. X#
  515. X# -r         restart
  516. X# -d dmn    local domain
  517. X# -w wait    wait between unmount attempts
  518. X# -l log    logfile or "syslog"
  519. X#
  520. Xeval nice --4 ./amd -p > /etc/amd.pid -r $dmn -w 240 -l "$LOGFILE" \
  521. X    /homes amd.homes -cache=inc \
  522. X    /home amd.home -cache=inc \
  523. X    /vol amd.vol -cache=inc
  524. END_OF_FILE
  525. if test 2009 -ne `wc -c <'amd.start.ex'`; then
  526.     echo shar: \"'amd.start.ex'\" unpacked with wrong size!
  527. fi
  528. # end of 'amd.start.ex'
  529. fi
  530. if test -f 'arch' -a "${1}" != "-c" ; then 
  531.   echo shar: Will not clobber existing file \"'arch'\"
  532. else
  533. echo shar: Extracting \"'arch'\" \(2329 characters\)
  534. sed "s/^X//" >'arch' <<'END_OF_FILE'
  535. X#! /bin/sh
  536. X#
  537. X# $Id: arch,v 5.1.1.2 90/01/11 17:04:47 jsp Exp Locker: jsp $
  538. X#
  539. X# Copyright (c) 1989 Jan-Simon Pendry
  540. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  541. X# Copyright (c) 1989 The Regents of the University of California.
  542. X# All rights reserved.
  543. X#
  544. X# This code is derived from software contributed to Berkeley by
  545. X# Jan-Simon Pendry at Imperial College, London.
  546. X#
  547. X# Redistribution and use in source and binary forms are permitted
  548. X# provided that the above copyright notice and this paragraph are
  549. X# duplicated in all such forms and that any documentation,
  550. X# advertising materials, and other materials related to such
  551. X# distribution and use acknowledge that the software was developed
  552. X# by Imperial College of Science, Technology and Medicine, London, UK.
  553. X# The names of the College and University may not be used to endorse
  554. X# or promote products derived from this software without specific
  555. X# prior written permission.
  556. X# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  557. X# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  558. X# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  559. X#
  560. X#    %W% (Berkeley) %G%
  561. X#
  562. X# Figure out machine architecture
  563. X#
  564. X
  565. XPATH=/bin:/usr/bin:/usr/ucb:/etc:/usr/local/bin:${PATH} export PATH
  566. X
  567. X#
  568. X# First try to find a standard command
  569. X#
  570. Xa=arch        # Sun compat
  571. Xm=machine    # BSD compat
  572. Xu=uname        # Sys5 compat
  573. X
  574. Xif [ -f /etc/$a -o -f /bin/$a -o -f /usr/bin/$a -o -f /usr/local/bin/$a ]
  575. Xthen
  576. X    exec $a
  577. Xelif [ -f /etc/$m -o -f /bin/$m -o -f /usr/bin/$m -o -f /usr/ucb/$m -o -f /usr/local/bin/$m ]
  578. Xthen
  579. X    exec $m
  580. Xelif [ -f /etc/$u -o -f /bin/$u -o -f /usr/bin/$u -o -f /usr/local/bin/$u ]
  581. Xthen
  582. X    ARCH="`uname`"
  583. X    case "$ARCH" in
  584. X        AIX*) MACH="`uname -m`"
  585. X            case "$MACH" in
  586. X            10*) echo ibm032; exit 0;;
  587. X            20*) echo ibm032; exit 0;;
  588. X            esac
  589. X            ;;
  590. X        A/UX) echo macII ; exit 0 ;;
  591. X        *) ;;
  592. X    esac
  593. Xfi
  594. X
  595. X#
  596. X# Take a pot-shot at your machine architecture
  597. X#
  598. Xecho "    ... No ARCH= option specified; dynamically determining architecture" >&2
  599. X
  600. Xcase "`head -1 /etc/motd`" in
  601. X*"HP-UX"*)        ARCH=hp9000;;
  602. X*"Ultrix"*)        ARCH=vax;;
  603. X*"RISC iX"*)        ARCH=arm;;
  604. X*"Umax 4.2"*)        ARCH=encore;;
  605. X*)            ARCH=unknown;
  606. X            if [ -d /usr/include/caif ]; then
  607. X                ARCH=ibm032
  608. X            fi;;
  609. Xesac
  610. X
  611. Xecho "    ... architecture appears to be \"${ARCH}\"" >&2
  612. Xecho $ARCH
  613. X
  614. Xcase "$ARCH" in
  615. Xunknown) exit 1
  616. Xesac
  617. X
  618. Xexit 0
  619. END_OF_FILE
  620. if test 2329 -ne `wc -c <'arch'`; then
  621.     echo shar: \"'arch'\" unpacked with wrong size!
  622. fi
  623. chmod +x 'arch'
  624. # end of 'arch'
  625. fi
  626. if test ! -d 'doc' ; then
  627.     echo shar: Creating directory \"'doc'\"
  628.     mkdir 'doc'
  629. fi
  630. if test -f 'doc/amd.bbl' -a "${1}" != "-c" ; then 
  631.   echo shar: Will not clobber existing file \"'doc/amd.bbl'\"
  632. else
  633. echo shar: Extracting \"'doc/amd.bbl'\" \(1927 characters\)
  634. sed "s/^X//" >'doc/amd.bbl' <<'END_OF_FILE'
  635. X\begin{thebibliography}{10}
  636. X
  637. X\bibitem{usenix:automounter}
  638. XB.~Callaghan and T.~Lyon, ``{The Automounter},'' in {\em Usenix Conference
  639. X  Proceedings, {\rm San Diego, California}}, pp.~43--51, Usenix Association,
  640. X  January 1989.
  641. X
  642. X\bibitem{sun:automount}
  643. X{Sun Microsystems}, ``Automount,'' in {\em SunOS Reference Manual}, ch.~8,
  644. X  pp.~1583--1585, Mountain View, California: Sun Microsystems, Inc, first~ed.,
  645. X  May 1988.
  646. X
  647. X\bibitem{sun:nfs}
  648. X{Sun Microsystems}, ``{Network File System: Version 2 Protocol
  649. X  Specification},'' in {\em Network Programming}, ch.~7, pp.~165--185, Mountain
  650. X  View, California: Sun Microsystems, Inc, first~ed., May 1988.
  651. X
  652. X\bibitem{sun:rpc}
  653. X{Sun Microsystems}, ``{Remote Procedure Calls: Protocol Specification},'' in
  654. X  {\em Network Programming}, ch.~6, pp.~143--163, Mountain View, California:
  655. X  Sun Microsystems, Inc, first~ed., May 1988.
  656. X
  657. X\bibitem{rfc:icmp}
  658. XJ.~Postel, ``{Internet Control Message Protocol},'' RFC 792, SRI Network
  659. X  Information Center, Menlo Park, California, September 1981.
  660. X
  661. X\bibitem{sun:yp}
  662. X{Sun Microsystems}, ``{The Sun YP Service},'' in {\em System \& Network
  663. X  Administration}, ch.~14, pp.~349--371, Mountain View, California: Sun
  664. X  Microsystems, Inc, first~ed., May 1988.
  665. X
  666. X\bibitem{mit:hesiod}
  667. XS.~P. Dyer, ``{The {\em Hesiod} Name Server},'' in {\em Usenix Conference
  668. X  Proceedings, {\rm Dallas, Texas}}, pp.~183--189, Usenix Association, February
  669. X  1988.
  670. X
  671. X\bibitem{rfc:ip}
  672. XJ.~Postel, ``{Internet Protocol},'' RFC 791, SRI Network Information Center,
  673. X  Menlo Park, California, September 1981.
  674. X
  675. X\bibitem{bsd:ufs}
  676. XS.~J. Leffler {\em et~al.}, {\em The Design and Implementation of the 4.3BSD
  677. X  UNIX Operating System}, ch.~7, pp.~187--223.
  678. X\newblock Addison-Wesley, 1989.
  679. X
  680. X\bibitem{mit:rvd}
  681. XM.~Greenwald and J.~V. Sciver, ``{Remote Virtual Disk Protocol
  682. X  Specification},'' tech. rep., Massachusetts Institute of Technology,
  683. X  Cambridge, Massachusetts, 1986.
  684. X
  685. X\end{thebibliography}
  686. END_OF_FILE
  687. if test 1927 -ne `wc -c <'doc/amd.bbl'`; then
  688.     echo shar: \"'doc/amd.bbl'\" unpacked with wrong size!
  689. fi
  690. # end of 'doc/amd.bbl'
  691. fi
  692. if test ! -d 'examples' ; then
  693.     echo shar: Creating directory \"'examples'\"
  694.     mkdir 'examples'
  695. fi
  696. if test -f 'examples/am.master' -a "${1}" != "-c" ; then 
  697.   echo shar: Will not clobber existing file \"'examples/am.master'\"
  698. else
  699. echo shar: Extracting \"'examples/am.master'\" \(48 characters\)
  700. sed "s/^X//" >'examples/am.master' <<'END_OF_FILE'
  701. X/home        amd.home
  702. X/homes        amd.homes
  703. X/vol        amd.vol
  704. END_OF_FILE
  705. if test 48 -ne `wc -c <'examples/am.master'`; then
  706.     echo shar: \"'examples/am.master'\" unpacked with wrong size!
  707. fi
  708. # end of 'examples/am.master'
  709. fi
  710. if test -f 'examples/amd.home' -a "${1}" != "-c" ; then 
  711.   echo shar: Will not clobber existing file \"'examples/amd.home'\"
  712. else
  713. echo shar: Extracting \"'examples/amd.home'\" \(1452 characters\)
  714. sed "s/^X//" >'examples/amd.home' <<'END_OF_FILE'
  715. Xachilles    -opts=rw,grpid,nosuid;rhost=achilles;rfs=/home/achilles \
  716. X        host=achilles;type=ufs;dev=/dev/xd0g \
  717. X        host=!achilles;type=nfs
  718. X#charm        -opts=rw,grpid,nosuid \
  719. X#        host=!achilles;type=nfs;rhost=achilles;rfs=/home/charm \
  720. X#        host=achilles;type=ufs;dev=/dev/xd0g
  721. X#brian         -opts=rw,grpid,nosuid \
  722. X#        brian:/home/brian \
  723. X#        brian:/dev/dsk/1s0
  724. X#dougal         -opts=rw,grpid,nosuid \
  725. X#        dougal:/home/dougal \
  726. X#        dougal:/dev/dsk/1s0
  727. X#eden        -opts=rw,grpid,nosuid \
  728. X#        host=!eden;type=nfs;rhost=eden;rfs=/home/eden \
  729. X#        host=eden;type=ufs;dev=/dev/dsk/1s0
  730. Xdylan        type=auto;fs=.
  731. X#
  732. Xdylan/dk2    -opts=rw,grpid,nosuid;rhost=dylan;rfs=/home/dylan/dk2 \
  733. X        host=!dylan;type=nfs \
  734. X        host=dylan;type=ufs;dev=/dev/dsk/2s0
  735. X#
  736. Xdylan/dk3    -opts=rw,grpid,nosuids;rhost=dylan;rfs=/home/dylan/dk3 \
  737. X        host=!dylan;type=nf \
  738. X        host=dylan;type=ufs;dev=/dev/dsk/3s0
  739. X#
  740. Xdylan/dk5    -opts=rw,grpid,nosuid;rhost=dylan;rfs=/home/dylan/dk5 \
  741. X        host=!dylan;type=nfs \
  742. X        host=dylan;type=ufs;dev=/dev/dsk/5s0
  743. X#
  744. Xganymede    -opts=rw,grpid,nosuid;rhost=ganymede;rfs=/home/ganymede \
  745. X        host=!ganymede;type=nfs \
  746. X        host=ganymede;type=ufs;dev=/dev/xy1g
  747. X#
  748. Xtoytown        -opts=rw,grpid,nosuid;rhost=toytown;rfs=/home/toytown \
  749. X        host=!toytown;type=nfs \
  750. X        host=toytown;type=ufs;dev=/dev/xy1g
  751. X#
  752. Xzebedee        -opts=rw,grpid,nosuid;rhost=zebedee;rfs=/home/zebedee \
  753. X        host=!zebedee;type=nfs \
  754. X        host=zebedee;type=ufs;dev=/dev/dsk/1s0
  755. X#
  756. Xgummo        -opts=rw,grpid,nosuid;rhost=gummo;rfs=/home/gummo \
  757. X        host=!gummo;type=nfs
  758. END_OF_FILE
  759. if test 1452 -ne `wc -c <'examples/amd.home'`; then
  760.     echo shar: \"'examples/amd.home'\" unpacked with wrong size!
  761. fi
  762. # end of 'examples/amd.home'
  763. fi
  764. if test -f 'examples/amd.vol' -a "${1}" != "-c" ; then 
  765.   echo shar: Will not clobber existing file \"'examples/amd.vol'\"
  766. else
  767. echo shar: Extracting \"'examples/amd.vol'\" \(519 characters\)
  768. sed "s/^X//" >'examples/amd.vol' <<'END_OF_FILE'
  769. Xwp    -opts=rw,grpid,nosuid;rhost=achilles \
  770. X    host=achilles;type=link;fs=/usr/local/wp \
  771. X    host=!achilles;type=nfs;rfs=/usr/local/wp
  772. X#
  773. Xtex    -opts=rw,grpid,nosuid;rhost=achilles \
  774. X    host=achilles;type=link;fs=/usr/local/tex \
  775. X    host=!achilles;type=nfs;rfs=/usr/local/tex
  776. X#
  777. Xsrc    -opts=rw,grpid,nosuid;rhost=achilles \
  778. X    host=achilles;type=link;fs=/usr/src \
  779. X    host=!achilles;type=nfs;rfs=/usr/src
  780. X#
  781. Xopenwin    -opts=rw,grpid,nosuid;rhost=achilles \
  782. X    host=achilles;type=link;fs=/tmp/X11NeWS \
  783. X    host=!achilles;type=nfs;rfs=/vol/openwin
  784. END_OF_FILE
  785. if test 519 -ne `wc -c <'examples/amd.vol'`; then
  786.     echo shar: \"'examples/amd.vol'\" unpacked with wrong size!
  787. fi
  788. # end of 'examples/amd.vol'
  789. fi
  790. if test -f 'info_ndbm.c' -a "${1}" != "-c" ; then 
  791.   echo shar: Will not clobber existing file \"'info_ndbm.c'\"
  792. else
  793. echo shar: Extracting \"'info_ndbm.c'\" \(2116 characters\)
  794. sed "s/^X//" >'info_ndbm.c' <<'END_OF_FILE'
  795. X/*
  796. X * $Id: info_ndbm.c,v 5.1.1.1 89/11/28 17:47:20 jsp Exp Locker: jsp $
  797. X *
  798. X * Copyright (c) 1989 Jan-Simon Pendry
  799. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  800. X * Copyright (c) 1989 The Regents of the University of California.
  801. X * All rights reserved.
  802. X *
  803. X * This code is derived from software contributed to Berkeley by
  804. X * Jan-Simon Pendry at Imperial College, London.
  805. X *
  806. X * Redistribution and use in source and binary forms are permitted
  807. X * provided that the above copyright notice and this paragraph are
  808. X * duplicated in all such forms and that any documentation,
  809. X * advertising materials, and other materials related to such
  810. X * distribution and use acknowledge that the software was developed
  811. X * by Imperial College of Science, Technology and Medicine, London, UK.
  812. X * The names of the College and University may not be used to endorse
  813. X * or promote products derived from this software without specific
  814. X * prior written permission.
  815. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  816. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  817. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  818. X *
  819. X *    %W% (Berkeley) %G%
  820. X */
  821. X
  822. X/*
  823. X * Get info from NDBM map
  824. X */
  825. X
  826. X#include "am.h"
  827. X
  828. X#ifdef HAS_NDBM_MAPS
  829. X
  830. X#include <ndbm.h>
  831. X#include <fcntl.h>
  832. X#include <sys/stat.h>
  833. X
  834. Xstatic int search_ndbm(db, key, val)
  835. XDBM *db;
  836. Xchar *key;
  837. Xchar **val;
  838. X{
  839. X    datum k, v;
  840. X    k.dptr = key;
  841. X    k.dsize = strlen(key) + 1;
  842. X    v = dbm_fetch(db, k);
  843. X    if (v.dptr) {
  844. X        *val = strdup(v.dptr);
  845. X        return 0;
  846. X    }
  847. X    return ENOENT;
  848. X}
  849. X
  850. Xint ndbm_search(m, map, key, pval, tp)
  851. Xmnt_map *m;
  852. Xchar *map;
  853. Xchar *key;
  854. Xchar **pval;
  855. Xtime_t *tp;
  856. X{
  857. X    DBM *db;
  858. X
  859. X    db = dbm_open(map, O_RDONLY, 0);
  860. X    if (db) {
  861. X        struct stat stb;
  862. X        int error;
  863. X        error = fstat(dbm_pagfno(db), &stb);
  864. X        if (!error && *tp < stb.st_mtime) {
  865. X            *tp = stb.st_mtime;
  866. X            error = -1;
  867. X        } else {
  868. X            error = search_ndbm(db, key, pval);
  869. X        }
  870. X        (void) dbm_close(db);
  871. X        return error;
  872. X    }
  873. X
  874. X    return errno;
  875. X}
  876. X
  877. Xint ndbm_init(map)
  878. Xchar *map;
  879. X{
  880. X    DBM *db;
  881. X
  882. X    db = dbm_open(map, O_RDONLY, 0);
  883. X    if (db) {
  884. X        dbm_close(db);
  885. X        return 0;
  886. X    }
  887. X
  888. X    return errno;
  889. X}
  890. X
  891. X#endif
  892. END_OF_FILE
  893. if test 2116 -ne `wc -c <'info_ndbm.c'`; then
  894.     echo shar: \"'info_ndbm.c'\" unpacked with wrong size!
  895. fi
  896. # end of 'info_ndbm.c'
  897. fi
  898. if test -f 'mount.h' -a "${1}" != "-c" ; then 
  899.   echo shar: Will not clobber existing file \"'mount.h'\"
  900. else
  901. echo shar: Extracting \"'mount.h'\" \(1457 characters\)
  902. sed "s/^X//" >'mount.h' <<'END_OF_FILE'
  903. X#define MNTPATHLEN 1024
  904. X#define MNTNAMLEN 255
  905. X#define FHSIZE 32
  906. X
  907. Xtypedef char fhandle[FHSIZE];
  908. Xbool_t xdr_fhandle();
  909. X
  910. X
  911. Xstruct fhstatus {
  912. X    u_int fhs_status;
  913. X    union {
  914. X        fhandle fhs_fhandle;
  915. X    } fhstatus_u;
  916. X};
  917. Xtypedef struct fhstatus fhstatus;
  918. Xbool_t xdr_fhstatus();
  919. X
  920. X
  921. Xtypedef char *dirpath;
  922. Xbool_t xdr_dirpath();
  923. X
  924. X
  925. Xtypedef char *name;
  926. Xbool_t xdr_name();
  927. X
  928. X
  929. Xstruct mountlist {
  930. X    name ml_hostname;
  931. X    dirpath ml_directory;
  932. X    struct mountlist *ml_next;
  933. X};
  934. Xtypedef struct mountlist mountlist;
  935. Xbool_t xdr_mountlist();
  936. X
  937. X
  938. Xtypedef struct groupnode *groups;
  939. Xbool_t xdr_groups();
  940. X
  941. X
  942. Xstruct groupnode {
  943. X    name gr_name;
  944. X    groups gr_next;
  945. X};
  946. Xtypedef struct groupnode groupnode;
  947. Xbool_t xdr_groupnode();
  948. X
  949. X
  950. Xtypedef struct exportnode *exports;
  951. Xbool_t xdr_exports();
  952. X
  953. X
  954. Xstruct exportnode {
  955. X    dirpath ex_dir;
  956. X    groups ex_groups;
  957. X    exports ex_next;
  958. X};
  959. Xtypedef struct exportnode exportnode;
  960. Xbool_t xdr_exportnode();
  961. X
  962. X
  963. X#define MOUNTPROG ((u_long)100005)
  964. X#define MOUNTVERS ((u_long)1)
  965. X#define MOUNTPROC_NULL ((u_long)0)
  966. Xextern voidp mountproc_null_1();
  967. X#define MOUNTPROC_MNT ((u_long)1)
  968. Xextern fhstatus *mountproc_mnt_1();
  969. X#define MOUNTPROC_DUMP ((u_long)2)
  970. Xextern mountlist *mountproc_dump_1();
  971. X#define MOUNTPROC_UMNT ((u_long)3)
  972. Xextern voidp mountproc_umnt_1();
  973. X#define MOUNTPROC_UMNTALL ((u_long)4)
  974. Xextern voidp mountproc_umntall_1();
  975. X#define MOUNTPROC_EXPORT ((u_long)5)
  976. Xextern exports *mountproc_export_1();
  977. X#define MOUNTPROC_EXPORTALL ((u_long)6)
  978. Xextern exports *mountproc_exportall_1();
  979. X
  980. END_OF_FILE
  981. if test 1457 -ne `wc -c <'mount.h'`; then
  982.     echo shar: \"'mount.h'\" unpacked with wrong size!
  983. fi
  984. # end of 'mount.h'
  985. fi
  986. if test -f 'newvers.sh' -a "${1}" != "-c" ; then 
  987.   echo shar: Will not clobber existing file \"'newvers.sh'\"
  988. else
  989. echo shar: Extracting \"'newvers.sh'\" \(1694 characters\)
  990. sed "s/^X//" >'newvers.sh' <<'END_OF_FILE'
  991. X#!/bin/sh -
  992. X#
  993. X# $Id: newvers.sh,v 5.1 89/11/17 18:18:27 jsp Exp Locker: jsp $
  994. X#
  995. X# Copyright (c) 1989 Jan-Simon Pendry
  996. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  997. X# Copyright (c) 1989 The Regents of the University of California.
  998. X# All Rights Reserved.
  999. X#
  1000. X# This code is derived from software contributed to Berkeley by
  1001. X# Jan-Simon Pendry at Imperial College, London.
  1002. X#
  1003. X# Redistribution and use in source and binary forms are permitted
  1004. X# provided that the above copyright notice and this paragraph are
  1005. X# duplicated in all such forms and that any documentation,
  1006. X# advertising materials, and other materials related to such
  1007. X# distribution and use acknowledge that the software was developed
  1008. X# by Imperial College of Science, Technology and Medicine, London, UK.
  1009. X# The names of the College and University may not be used to endorse
  1010. X# or promote products derived from this software without specific
  1011. X# prior written permission.
  1012. X# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1013. X# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1014. X# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1015. X#
  1016. X#    %W% (Berkeley) %G%
  1017. X#
  1018. XPATH=/usr/ucb:/bin:/usr/bin
  1019. Xif [ $# -ne 1 ]; then echo "Usage: newvers program" >&2; exit 1; fi
  1020. Xversion="version.$1"
  1021. Xif [ ! -r $version ]; then echo 0 > $version; chmod 444 $version; fi
  1022. Xv=`cat $version`
  1023. Xu=${USER-${LOGNAME-root}}
  1024. Xh=`hostname`
  1025. X#h=`expr "$h" : '\([^.]*\)'`
  1026. Xt=`date`
  1027. Xr=`cat ../RELEASE`
  1028. Xc=`sed 's/$/\\\\n\\\\/' ../COPYRIGHT`
  1029. Xrm -f vers.$1.c
  1030. Xcat > vers.$1.c << %%
  1031. Xchar version[] = "\\
  1032. X${c}
  1033. X$1 ${r} #${v}: ${t}\\n\\
  1034. XBuilt by ${u}@${h}";
  1035. X%%
  1036. Xrm -f $version
  1037. X/bin/echo `expr ${v} + 1` > $version
  1038. Xchmod 444 $version
  1039. END_OF_FILE
  1040. if test 1694 -ne `wc -c <'newvers.sh'`; then
  1041.     echo shar: \"'newvers.sh'\" unpacked with wrong size!
  1042. fi
  1043. # end of 'newvers.sh'
  1044. fi
  1045. if test -f 'os-acis43.h' -a "${1}" != "-c" ; then 
  1046.   echo shar: Will not clobber existing file \"'os-acis43.h'\"
  1047. else
  1048. echo shar: Extracting \"'os-acis43.h'\" \(1784 characters\)
  1049. sed "s/^X//" >'os-acis43.h' <<'END_OF_FILE'
  1050. X/* $Id: os-acis43.h,v 5.1.1.1 89/11/28 18:00:02 jsp Exp Locker: jsp $ */
  1051. X
  1052. X/*
  1053. X * IBM RT ACIS4.3 definitions for Amd (automounter)
  1054. X *
  1055. X * Copyright (c) 1989 Jan-Simon Pendry
  1056. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1057. X * Copyright (c) 1989 The Regents of the University of California.
  1058. X * All rights reserved.
  1059. X *
  1060. X * This code is derived from software contributed to Berkeley by
  1061. X * Jan-Simon Pendry at Imperial College, London.
  1062. X *
  1063. X * Redistribution and use in source and binary forms are permitted
  1064. X * provided that the above copyright notice and this paragraph are
  1065. X * duplicated in all such forms and that any documentation,
  1066. X * advertising materials, and other materials related to such
  1067. X * distribution and use acknowledge that the software was developed
  1068. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1069. X * The names of the College and University may not be used to endorse
  1070. X * or promote products derived from this software without specific
  1071. X * prior written permission.
  1072. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1073. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1074. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1075. X *
  1076. X *    %W% (Berkeley) %G%
  1077. X */
  1078. X
  1079. X/*
  1080. X * Does the compiler grok void *
  1081. X */
  1082. X#define    VOIDP
  1083. X
  1084. X/*
  1085. X * Which version of the Sun RPC library we are using
  1086. X * This is the implementation release number, not
  1087. X * the protocol revision number.
  1088. X */
  1089. X#define    RPC_3
  1090. X
  1091. X/*
  1092. X * Which version of the NFS interface are we using.
  1093. X * This is the implementation release number, not
  1094. X * the protocol revision number.
  1095. X */
  1096. X#define    NFS_3
  1097. X
  1098. X/*
  1099. X * Does this OS have NDBM support?
  1100. X */
  1101. X#define OS_HAS_NDBM
  1102. X
  1103. X/*
  1104. X * Name of filesystem types
  1105. X */
  1106. X#define    MOUNT_TYPE_NFS    MOUNT_NFS
  1107. X#define    MOUNT_TYPE_UFS    MOUNT_UFS
  1108. END_OF_FILE
  1109. if test 1784 -ne `wc -c <'os-acis43.h'`; then
  1110.     echo shar: \"'os-acis43.h'\" unpacked with wrong size!
  1111. fi
  1112. # end of 'os-acis43.h'
  1113. fi
  1114. if test -f 'os-concentrix.h' -a "${1}" != "-c" ; then 
  1115.   echo shar: Will not clobber existing file \"'os-concentrix.h'\"
  1116. else
  1117. echo shar: Extracting \"'os-concentrix.h'\" \(1867 characters\)
  1118. sed "s/^X//" >'os-concentrix.h' <<'END_OF_FILE'
  1119. X/* $Id: os-concentrix.h,v 5.1.1.1 90/01/11 17:15:39 jsp Exp Locker: jsp $ */
  1120. X
  1121. X/*
  1122. X * Alliant Concentrix 5.0.0 definitions for Amd (automounter)
  1123. X *
  1124. X * Copyright (c) 1989 Jan-Simon Pendry
  1125. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1126. X * Copyright (c) 1989 The Regents of the University of California.
  1127. X * All rights reserved.
  1128. X *
  1129. X * This code is derived from software contributed to Berkeley by
  1130. X * Jan-Simon Pendry at Imperial College, London.
  1131. X *
  1132. X * Redistribution and use in source and binary forms are permitted
  1133. X * provided that the above copyright notice and this paragraph are
  1134. X * duplicated in all such forms and that any documentation,
  1135. X * advertising materials, and other materials related to such
  1136. X * distribution and use acknowledge that the software was developed
  1137. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1138. X * The names of the College and University may not be used to endorse
  1139. X * or promote products derived from this software without specific
  1140. X * prior written permission.
  1141. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1142. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1143. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1144. X *
  1145. X *    %W% (Berkeley) %G%
  1146. X */
  1147. X
  1148. X/*
  1149. X * Does the compiler grok void *
  1150. X */
  1151. X#undef    VOIDP
  1152. X
  1153. X/*
  1154. X * Which version of the Sun RPC library we are using
  1155. X * This is the implementation release number, not
  1156. X * the protocol revision number.
  1157. X */
  1158. X#define    RPC_3
  1159. X
  1160. X/*
  1161. X * Which version of the NFS interface are we using.
  1162. X * This is the implementation release number, not
  1163. X * the protocol revision number.
  1164. X */
  1165. X#define    NFS_3
  1166. X
  1167. X/*
  1168. X * Does this OS have NDBM support?
  1169. X */
  1170. X#define OS_HAS_NDBM
  1171. X
  1172. X/*
  1173. X * Byte ordering
  1174. X */
  1175. X#undef ARCH_ENDIAN
  1176. X#define    ARCH_ENDIAN    "big"
  1177. X
  1178. X/*
  1179. X * Name of filesystem types
  1180. X */
  1181. X#define MOUNT_TYPE_NFS    MOUNT_NFS
  1182. X#define MOUNT_TYPE_UFS    MOUNT_UFS
  1183. END_OF_FILE
  1184. if test 1867 -ne `wc -c <'os-concentrix.h'`; then
  1185.     echo shar: \"'os-concentrix.h'\" unpacked with wrong size!
  1186. fi
  1187. # end of 'os-concentrix.h'
  1188. fi
  1189. if test -f 'os-hlh42.h' -a "${1}" != "-c" ; then 
  1190.   echo shar: Will not clobber existing file \"'os-hlh42.h'\"
  1191. else
  1192. echo shar: Extracting \"'os-hlh42.h'\" \(2004 characters\)
  1193. sed "s/^X//" >'os-hlh42.h' <<'END_OF_FILE'
  1194. X/* $Id: os-hlh42.h,v 5.1.1.1 89/11/28 18:03:37 jsp Exp Locker: jsp $ */
  1195. X
  1196. X/*
  1197. X * HLH OTS definitions for Amd (automounter)
  1198. X *
  1199. X * Copyright (c) 1989 Jan-Simon Pendry
  1200. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1201. X * Copyright (c) 1989 The Regents of the University of California.
  1202. X * All rights reserved.
  1203. X *
  1204. X * This code is derived from software contributed to Berkeley by
  1205. X * Jan-Simon Pendry at Imperial College, London.
  1206. X *
  1207. X * Redistribution and use in source and binary forms are permitted
  1208. X * provided that the above copyright notice and this paragraph are
  1209. X * duplicated in all such forms and that any documentation,
  1210. X * advertising materials, and other materials related to such
  1211. X * distribution and use acknowledge that the software was developed
  1212. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1213. X * The names of the College and University may not be used to endorse
  1214. X * or promote products derived from this software without specific
  1215. X * prior written permission.
  1216. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1217. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1218. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1219. X *
  1220. X *    %W% (Berkeley) %G%
  1221. X */
  1222. X
  1223. X/*
  1224. X * Does the compiler grok void *
  1225. X */
  1226. X#undef    VOIDP
  1227. X
  1228. X/*
  1229. X * Which version of the Sun RPC library we are using
  1230. X * This is the implementation release number, not
  1231. X * the protocol revision number.
  1232. X */
  1233. X#define    RPC_3
  1234. X
  1235. X/*
  1236. X * Which version of the NFS interface are we using.
  1237. X * This is the implementation release number, not
  1238. X * the protocol revision number.
  1239. X */
  1240. X#define    NFS_3
  1241. X
  1242. X/*
  1243. X * Byte ordering
  1244. X */
  1245. X#undef ARCH_ENDIAN
  1246. X#if defined(hlh)
  1247. X#define    ARCH_ENDIAN    "little"
  1248. X#endif
  1249. X
  1250. X/*
  1251. X * Name of filesystem types
  1252. X */
  1253. X#define    MOUNT_TYPE_NFS    MOUNT_NFS
  1254. X#define    MOUNT_TYPE_UFS    MOUNT_UFS
  1255. X
  1256. X/*
  1257. X * Miscellaneous HLH 4.2 incantations
  1258. X */
  1259. X#define    strchr    index
  1260. X#define strrchr    rindex
  1261. X#define sigmask(x)    (1 << ((x)-1))
  1262. X
  1263. X/*
  1264. X * HLH's 4.2 needs the extra RPC definitions.
  1265. X */
  1266. X#define MISC_RPC
  1267. END_OF_FILE
  1268. if test 2004 -ne `wc -c <'os-hlh42.h'`; then
  1269.     echo shar: \"'os-hlh42.h'\" unpacked with wrong size!
  1270. fi
  1271. # end of 'os-hlh42.h'
  1272. fi
  1273. if test -f 'os-riscix.h' -a "${1}" != "-c" ; then 
  1274.   echo shar: Will not clobber existing file \"'os-riscix.h'\"
  1275. else
  1276. echo shar: Extracting \"'os-riscix.h'\" \(2025 characters\)
  1277. sed "s/^X//" >'os-riscix.h' <<'END_OF_FILE'
  1278. X/* $Id: os-riscix.h,v 5.1.1.1 89/11/28 18:04:13 jsp Exp Locker: jsp $ */
  1279. X
  1280. X/*
  1281. X * Acorn Archimedes RISC iX definitions for Amd (automounter)
  1282. X * Contributed by Piete Brooks.
  1283. X *
  1284. X * Copyright (c) 1989 Jan-Simon Pendry
  1285. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1286. X * Copyright (c) 1989 The Regents of the University of California.
  1287. X * All rights reserved.
  1288. X *
  1289. X * This code is derived from software contributed to Berkeley by
  1290. X * Jan-Simon Pendry at Imperial College, London.
  1291. X *
  1292. X * Redistribution and use in source and binary forms are permitted
  1293. X * provided that the above copyright notice and this paragraph are
  1294. X * duplicated in all such forms and that any documentation,
  1295. X * advertising materials, and other materials related to such
  1296. X * distribution and use acknowledge that the software was developed
  1297. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1298. X * The names of the College and University may not be used to endorse
  1299. X * or promote products derived from this software without specific
  1300. X * prior written permission.
  1301. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1302. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1303. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1304. X *
  1305. X *    %W% (Berkeley) %G%
  1306. X */
  1307. X
  1308. X/*
  1309. X * Does the compiler grok void *
  1310. X */
  1311. X#define    VOIDP
  1312. X
  1313. X/*
  1314. X * Which version of the Sun RPC library we are using
  1315. X * This is the implementation release number, not
  1316. X * the protocol revision number.
  1317. X */
  1318. X#define    RPC_3
  1319. X
  1320. X/*
  1321. X * Which version of the NFS interface are we using.
  1322. X * This is the implementation release number, not
  1323. X * the protocol revision number.
  1324. X */
  1325. X#define    NFS_3
  1326. X
  1327. X/*
  1328. X * Does this OS have NDBM support?
  1329. X */
  1330. X#define OS_HAS_NDBM
  1331. X
  1332. X/*
  1333. X * Byte ordering
  1334. X */
  1335. X#undef    ARCH_ENDIAN
  1336. X#define    ARCH_ENDIAN "little"
  1337. X
  1338. X/*
  1339. X * Is the mount table mirrored in software
  1340. X */
  1341. X#define    UPDATE_MTAB
  1342. X
  1343. X/*
  1344. X * Name of filesystem types
  1345. X */
  1346. X#define    MOUNT_TYPE_NFS    MOUNT_NFS
  1347. X#define    MOUNT_TYPE_UFS    MOUNT_UFS
  1348. X
  1349. X#undef    MTAB_TYPE_UFS
  1350. X#define    MTAB_TYPE_UFS    MNTTYPE_43
  1351. END_OF_FILE
  1352. if test 2025 -ne `wc -c <'os-riscix.h'`; then
  1353.     echo shar: \"'os-riscix.h'\" unpacked with wrong size!
  1354. fi
  1355. # end of 'os-riscix.h'
  1356. fi
  1357. if test -f 'os-sos3.h' -a "${1}" != "-c" ; then 
  1358.   echo shar: Will not clobber existing file \"'os-sos3.h'\"
  1359. else
  1360. echo shar: Extracting \"'os-sos3.h'\" \(1904 characters\)
  1361. sed "s/^X//" >'os-sos3.h' <<'END_OF_FILE'
  1362. X/* $Id: os-sos3.h,v 5.1.1.1 89/11/28 18:04:23 jsp Exp Locker: jsp $ */
  1363. X
  1364. X/*
  1365. X * SunOS 3.2 definitions for Amd (automounter)
  1366. X *
  1367. X * Copyright (c) 1989 Jan-Simon Pendry
  1368. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1369. X * Copyright (c) 1989 The Regents of the University of California.
  1370. X * All rights reserved.
  1371. X *
  1372. X * This code is derived from software contributed to Berkeley by
  1373. X * Jan-Simon Pendry at Imperial College, London.
  1374. X *
  1375. X * Redistribution and use in source and binary forms are permitted
  1376. X * provided that the above copyright notice and this paragraph are
  1377. X * duplicated in all such forms and that any documentation,
  1378. X * advertising materials, and other materials related to such
  1379. X * distribution and use acknowledge that the software was developed
  1380. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1381. X * The names of the College and University may not be used to endorse
  1382. X * or promote products derived from this software without specific
  1383. X * prior written permission.
  1384. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1385. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1386. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1387. X *
  1388. X *    %W% (Berkeley) %G%
  1389. X */
  1390. X
  1391. X/*
  1392. X * Does the compiler grok void *
  1393. X */
  1394. X#define    VOIDP
  1395. X
  1396. X/*
  1397. X * Which version of the Sun RPC library we are using
  1398. X * This is the implementation release number, not
  1399. X * the protocol revision number.
  1400. X */
  1401. X#define    RPC_3
  1402. X
  1403. X/*
  1404. X * Which version of the NFS interface are we using.
  1405. X * This is the implementation release number, not
  1406. X * the protocol revision number.
  1407. X */
  1408. X#define    NFS_3
  1409. X
  1410. X/*
  1411. X * Byte ordering
  1412. X */
  1413. X#undef ARCH_ENDIAN
  1414. X#if defined(mc68010) || defined(mc68020) || defined(sparc)
  1415. X#define    ARCH_ENDIAN    "big"
  1416. X#endif
  1417. X#if defined(i386)
  1418. X#define ARCH_ENDIAN    "little"
  1419. X#endif
  1420. X
  1421. X/*
  1422. X * Name of filesystem types
  1423. X */
  1424. X#define    MOUNT_TYPE_UFS    MOUNT_UFS
  1425. X#define MOUNT_TYPE_NFS    MOUNT_NFS
  1426. END_OF_FILE
  1427. if test 1904 -ne `wc -c <'os-sos3.h'`; then
  1428.     echo shar: \"'os-sos3.h'\" unpacked with wrong size!
  1429. fi
  1430. # end of 'os-sos3.h'
  1431. fi
  1432. if test -f 'os-sos4.h' -a "${1}" != "-c" ; then 
  1433.   echo shar: Will not clobber existing file \"'os-sos4.h'\"
  1434. else
  1435. echo shar: Extracting \"'os-sos4.h'\" \(2193 characters\)
  1436. sed "s/^X//" >'os-sos4.h' <<'END_OF_FILE'
  1437. X/* $Id: os-sos4.h,v 5.1.1.1 89/11/28 18:04:35 jsp Exp Locker: jsp $ */
  1438. X
  1439. X/*
  1440. X * SunOS 4.0 definitions for Amd (automounter)
  1441. X *
  1442. X * Copyright (c) 1989 Jan-Simon Pendry
  1443. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1444. X * Copyright (c) 1989 The Regents of the University of California.
  1445. X * All rights reserved.
  1446. X *
  1447. X * This code is derived from software contributed to Berkeley by
  1448. X * Jan-Simon Pendry at Imperial College, London.
  1449. X *
  1450. X * Redistribution and use in source and binary forms are permitted
  1451. X * provided that the above copyright notice and this paragraph are
  1452. X * duplicated in all such forms and that any documentation,
  1453. X * advertising materials, and other materials related to such
  1454. X * distribution and use acknowledge that the software was developed
  1455. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1456. X * The names of the College and University may not be used to endorse
  1457. X * or promote products derived from this software without specific
  1458. X * prior written permission.
  1459. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1460. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1461. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1462. X *
  1463. X *    %W% (Berkeley) %G%
  1464. X */
  1465. X
  1466. X/*
  1467. X * Does the compiler grok void *
  1468. X */
  1469. X#define    VOIDP
  1470. X
  1471. X/*
  1472. X * Which version of the Sun RPC library we are using
  1473. X * This is the implementation release number, not
  1474. X * the protocol revision number.
  1475. X */
  1476. X#define    RPC_4
  1477. X
  1478. X/*
  1479. X * Which version of the NFS interface are we using.
  1480. X * This is the implementation release number, not
  1481. X * the protocol revision number.
  1482. X */
  1483. X#define    NFS_4
  1484. X
  1485. X/*
  1486. X * Does this OS have NDBM support?
  1487. X */
  1488. X#define OS_HAS_NDBM
  1489. X
  1490. X/*
  1491. X * Byte ordering
  1492. X */
  1493. X#undef ARCH_ENDIAN
  1494. X#if defined(mc68010) || defined(mc68020) || defined(sparc)
  1495. X#define    ARCH_ENDIAN    "big"
  1496. X#endif
  1497. X#if defined(i386)
  1498. X#define ARCH_ENDIAN    "little"
  1499. X#endif
  1500. X
  1501. X/*
  1502. X * Name of filesystem types
  1503. X */
  1504. X#define MOUNT_TYPE_NFS    "nfs"
  1505. X#define MOUNT_TYPE_UFS    "4.2"
  1506. X
  1507. X/*
  1508. X * Type of a file handle
  1509. X */
  1510. X#undef NFS_FH_TYPE
  1511. X#define    NFS_FH_TYPE    caddr_t
  1512. X
  1513. X/*
  1514. X * Type of filesystem type
  1515. X */
  1516. X#undef MTYPE_TYPE
  1517. X#define    MTYPE_TYPE    char *
  1518. X
  1519. X/*
  1520. X * Add support for SunOS 4 automounter files
  1521. X */
  1522. X#define    SUNOS4_COMPAT
  1523. END_OF_FILE
  1524. if test 2193 -ne `wc -c <'os-sos4.h'`; then
  1525.     echo shar: \"'os-sos4.h'\" unpacked with wrong size!
  1526. fi
  1527. # end of 'os-sos4.h'
  1528. fi
  1529. if test -f 'os-umax43.h' -a "${1}" != "-c" ; then 
  1530.   echo shar: Will not clobber existing file \"'os-umax43.h'\"
  1531. else
  1532. echo shar: Extracting \"'os-umax43.h'\" \(1851 characters\)
  1533. sed "s/^X//" >'os-umax43.h' <<'END_OF_FILE'
  1534. X/* $Id: os-umax43.h,v 5.1.1.1 90/01/11 17:16:53 jsp Exp Locker: jsp $ */
  1535. X
  1536. X/*
  1537. X * UMAX 4.3 definitions for Amd (automounter)
  1538. X *
  1539. X * Copyright (c) 1989 Jan-Simon Pendry
  1540. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1541. X * Copyright (c) 1989 The Regents of the University of California.
  1542. X * All rights reserved.
  1543. X *
  1544. X * This code is derived from software contributed to Berkeley by
  1545. X * Jan-Simon Pendry at Imperial College, London.
  1546. X *
  1547. X * Redistribution and use in source and binary forms are permitted
  1548. X * provided that the above copyright notice and this paragraph are
  1549. X * duplicated in all such forms and that any documentation,
  1550. X * advertising materials, and other materials related to such
  1551. X * distribution and use acknowledge that the software was developed
  1552. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1553. X * The names of the College and University may not be used to endorse
  1554. X * or promote products derived from this software without specific
  1555. X * prior written permission.
  1556. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1557. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1558. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1559. X *
  1560. X *    %W% (Berkeley) %G%
  1561. X */
  1562. X
  1563. X/*
  1564. X * Does the compiler grok void *
  1565. X */
  1566. X#define    VOIDP
  1567. X
  1568. X/*
  1569. X * Which version of the Sun RPC library we are using
  1570. X * This is the implementation release number, not
  1571. X * the protocol revision number.
  1572. X */
  1573. X#define    RPC_4
  1574. X
  1575. X/*
  1576. X * Which version of the NFS interface are we using.
  1577. X * This is the implementation release number, not
  1578. X * the protocol revision number.
  1579. X */
  1580. X#define    NFS_3
  1581. X
  1582. X/*
  1583. X * Does this OS have NDBM support?
  1584. X */
  1585. X#define OS_HAS_NDBM
  1586. X
  1587. X/*
  1588. X * Byte ordering
  1589. X */
  1590. X#undef ARCH_ENDIAN
  1591. X#define ARCH_ENDIAN    "little"
  1592. X
  1593. X/*
  1594. X * Name of filesystem types
  1595. X */
  1596. X#define MOUNT_TYPE_NFS    MOUNT_NFS
  1597. X#define MOUNT_TYPE_UFS    MOUNT_UFS
  1598. END_OF_FILE
  1599. if test 1851 -ne `wc -c <'os-umax43.h'`; then
  1600.     echo shar: \"'os-umax43.h'\" unpacked with wrong size!
  1601. fi
  1602. # end of 'os-umax43.h'
  1603. fi
  1604. if test -f 'os-utx32.h' -a "${1}" != "-c" ; then 
  1605.   echo shar: Will not clobber existing file \"'os-utx32.h'\"
  1606. else
  1607. echo shar: Extracting \"'os-utx32.h'\" \(1970 characters\)
  1608. sed "s/^X//" >'os-utx32.h' <<'END_OF_FILE'
  1609. X/* $Id: os-utx32.h,v 5.1.1.1 89/11/28 18:05:09 jsp Exp Locker: jsp $ */
  1610. X
  1611. X/*
  1612. X * Gould UTX/32 definitions for Amd (automounter)
  1613. X *
  1614. X * Copyright (c) 1989 Jan-Simon Pendry
  1615. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1616. X * Copyright (c) 1989 The Regents of the University of California.
  1617. X * All rights reserved.
  1618. X *
  1619. X * This code is derived from software contributed to Berkeley by
  1620. X * Jan-Simon Pendry at Imperial College, London.
  1621. X *
  1622. X * Redistribution and use in source and binary forms are permitted
  1623. X * provided that the above copyright notice and this paragraph are
  1624. X * duplicated in all such forms and that any documentation,
  1625. X * advertising materials, and other materials related to such
  1626. X * distribution and use acknowledge that the software was developed
  1627. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1628. X * The names of the College and University may not be used to endorse
  1629. X * or promote products derived from this software without specific
  1630. X * prior written permission.
  1631. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1632. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1633. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1634. X *
  1635. X *    %W% (Berkeley) %G%
  1636. X */
  1637. X
  1638. X/*
  1639. X * Does the compiler grok void *
  1640. X */
  1641. X#ifdef __GNUC__
  1642. X#define    VOIDP
  1643. X#endif
  1644. X
  1645. X/*
  1646. X * Which version of the Sun RPC library we are using
  1647. X * This is the implementation release number, not
  1648. X * the protocol revision number.
  1649. X */
  1650. X#define    RPC_3
  1651. X
  1652. X/*
  1653. X * Which version of the NFS interface are we using.
  1654. X * This is the implementation release number, not
  1655. X * the protocol revision number.
  1656. X */
  1657. X#define    NFS_3
  1658. X
  1659. X/*
  1660. X * Does this OS have NDBM support?
  1661. X */
  1662. X#define OS_HAS_NDBM
  1663. X
  1664. X/*
  1665. X * Byte ordering
  1666. X */
  1667. X#undef ARCH_ENDIAN
  1668. X#if defined(gould) || defined(GOULD_PN)
  1669. X#define    ARCH_ENDIAN    "big"
  1670. X#endif
  1671. X
  1672. X/*
  1673. X * Name of filesystem types
  1674. X */
  1675. X#define    MOUNT_TYPE_NFS    MOUNT_NFS
  1676. X#define    MOUNT_TYPE_UFS    MOUNT_UFS
  1677. X#undef MTAB_TYPE_UFS
  1678. X#define    MTAB_TYPE_UFS    "4.3"
  1679. END_OF_FILE
  1680. if test 1970 -ne `wc -c <'os-utx32.h'`; then
  1681.     echo shar: \"'os-utx32.h'\" unpacked with wrong size!
  1682. fi
  1683. # end of 'os-utx32.h'
  1684. fi
  1685. if test -f 'patchlevel.h' -a "${1}" != "-c" ; then 
  1686.   echo shar: Will not clobber existing file \"'patchlevel.h'\"
  1687. else
  1688. echo shar: Extracting \"'patchlevel.h'\" \(21 characters\)
  1689. sed "s/^X//" >'patchlevel.h' <<'END_OF_FILE'
  1690. X#define PATCHLEVEL 6
  1691. END_OF_FILE
  1692. if test 21 -ne `wc -c <'patchlevel.h'`; then
  1693.     echo shar: \"'patchlevel.h'\" unpacked with wrong size!
  1694. fi
  1695. # end of 'patchlevel.h'
  1696. fi
  1697. if test -f 'rcs_info.c' -a "${1}" != "-c" ; then 
  1698.   echo shar: Will not clobber existing file \"'rcs_info.c'\"
  1699. else
  1700. echo shar: Extracting \"'rcs_info.c'\" \(2243 characters\)
  1701. sed "s/^X//" >'rcs_info.c' <<'END_OF_FILE'
  1702. X/*
  1703. X * $Id: rcs_info.c,v 5.1.1.1 90/01/11 17:17:42 jsp Exp Locker: jsp $
  1704. X *
  1705. X * Copyright (c) 1990 Jan-Simon Pendry
  1706. X * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  1707. X * Copyright (c) 1990 The Regents of the University of California.
  1708. X * All rights reserved.
  1709. X *
  1710. X * This code is derived from software contributed to Berkeley by
  1711. X * Jan-Simon Pendry at Imperial College, London.
  1712. X *
  1713. X * Redistribution and use in source and binary forms are permitted
  1714. X * provided that the above copyright notice and this paragraph are
  1715. X * duplicated in all such forms and that any documentation,
  1716. X * advertising materials, and other materials related to such
  1717. X * distribution and use acknowledge that the software was developed
  1718. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1719. X * The names of the College and University may not be used to endorse
  1720. X * or promote products derived from this software without specific
  1721. X * prior written permission.
  1722. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1723. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1724. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1725. X *
  1726. X *    %W% (Berkeley) %G%
  1727. X */
  1728. X
  1729. X/*
  1730. X * Pretty-print some RCS information
  1731. X */
  1732. X
  1733. X#include "am.h"
  1734. X
  1735. Xvoid show_rcs_info(msg, buf)
  1736. Xconst char *msg;
  1737. Xchar *buf;
  1738. X{
  1739. X    /*
  1740. X     * Trivial fsm to print an RCS header without
  1741. X     * printing the RCS variables themselves.
  1742. X     */
  1743. X    const char *p = msg;
  1744. X
  1745. X    enum rstate { Text, Header, Body, FQuit } st = Text;
  1746. X
  1747. X    while (st != FQuit) {
  1748. X        if (st == Text || st == Body) {
  1749. X            /*
  1750. X             * Find next $
  1751. X             */
  1752. X            int len;
  1753. X            char *q = strchr(p, '$');
  1754. X            if (q) {
  1755. X                /*
  1756. X                 * Write out upto the '$'
  1757. X                 */
  1758. X                len = q-p-(st==Body?1:0);
  1759. X                bcopy(p, buf, len);
  1760. X                /*
  1761. X                 * Advance p
  1762. X                 */
  1763. X                p = q+1;
  1764. X                /*
  1765. X                 * Switch state
  1766. X                 */
  1767. X                if (st == Body)
  1768. X                    st = Text;
  1769. X                else
  1770. X                    st = Header;
  1771. X            } else {
  1772. X                /*
  1773. X                 * Nothing more to do, write
  1774. X                 * out rest of line and quit
  1775. X                 */
  1776. X                len = strlen(p);
  1777. X                bcopy(p, buf, len);
  1778. X                st = FQuit;
  1779. X            }
  1780. X            buf += len;
  1781. X        } else if (st == Header) {
  1782. X            /*
  1783. X             * Skip past $blah: part
  1784. X             */
  1785. X            char *q = strchr(p, ':');
  1786. X            if (q) {
  1787. X                p = q+2;
  1788. X                st = Body;
  1789. X            } else {
  1790. X                st = FQuit;
  1791. X            }
  1792. X        }
  1793. X    }
  1794. X    *buf = '\0';
  1795. X}
  1796. END_OF_FILE
  1797. if test 2243 -ne `wc -c <'rcs_info.c'`; then
  1798.     echo shar: \"'rcs_info.c'\" unpacked with wrong size!
  1799. fi
  1800. # end of 'rcs_info.c'
  1801. fi
  1802. if test ! -d 'scripts' ; then
  1803.     echo shar: Creating directory \"'scripts'\"
  1804.     mkdir 'scripts'
  1805. fi
  1806. if test -f 'scripts/auto-banner' -a "${1}" != "-c" ; then 
  1807.   echo shar: Will not clobber existing file \"'scripts/auto-banner'\"
  1808. else
  1809. echo shar: Extracting \"'scripts/auto-banner'\" \(300 characters\)
  1810. sed "s/^X//" >'scripts/auto-banner' <<'END_OF_FILE'
  1811. X#!/bin/sh
  1812. X#
  1813. X# $Id: auto-banner,v 5.1 89/11/17 18:24:08 jsp Exp Locker: jsp $
  1814. X#
  1815. X# Copyright (C) 1989 by Jan-Simon Pendry
  1816. X# All Rights Reserved.
  1817. X#
  1818. X# Generate a warning banner
  1819. X#
  1820. Xcat << %
  1821. X#
  1822. X#
  1823. X#  WARNING:  THIS IS A MACHINE GENERATED FILE --- DO NOT EDIT HERE
  1824. X#
  1825. X#  Built by $USER@`hostname` on `date`
  1826. X#
  1827. X%
  1828. END_OF_FILE
  1829. if test 300 -ne `wc -c <'scripts/auto-banner'`; then
  1830.     echo shar: \"'scripts/auto-banner'\" unpacked with wrong size!
  1831. fi
  1832. chmod +x 'scripts/auto-banner'
  1833. # end of 'scripts/auto-banner'
  1834. fi
  1835. if test -f 'scripts/build-userinfo' -a "${1}" != "-c" ; then 
  1836.   echo shar: Will not clobber existing file \"'scripts/build-userinfo'\"
  1837. else
  1838. echo shar: Extracting \"'scripts/build-userinfo'\" \(929 characters\)
  1839. sed "s/^X//" >'scripts/build-userinfo' <<'END_OF_FILE'
  1840. X#!/bin/sh -
  1841. X#
  1842. X# $Id: build-userinfo,v 5.1 89/11/17 18:24:12 jsp Exp Locker: jsp $
  1843. X#
  1844. X# Copyright (C) 1989 by Jan-Simon Pendry
  1845. X# All Rights Reserved.
  1846. X#
  1847. X# Construct the amd.home and amd.homes maps for /home and /homes.
  1848. X#
  1849. X# First call "get-homes" which will locate a list of user home directories.
  1850. X# Then call mk-home-maps which takes the list of directories and a list
  1851. X# of disk partition information and constructs the amd maps.
  1852. X#
  1853. Xif get-homes home-dirs && mk-home-maps home-dirs home-parts; then
  1854. X    #
  1855. X    # So far so good...
  1856. X    # Now rename the files, appending the .copyin files
  1857. X    # if they exist
  1858. X    #
  1859. X    auto-banner | tee amd.homes amd.home > /dev/null
  1860. X    if [ -f amd.homes.copyin ]; then
  1861. X        cat home-dirs.cf amd.homes.copyin >> amd.homes
  1862. X    else
  1863. X        cat home-dirs.cf >> amd.homes
  1864. X    fi
  1865. X        rm home-dirs.cf
  1866. X    if [ -f amd.home.copyin ]; then
  1867. X        cat home-parts.cf amd.home.copyin >> amd.home
  1868. X    else
  1869. X        cat home-parts.cf >> amd.home
  1870. X    fi
  1871. X    rm home-parts.cf
  1872. Xfi
  1873. END_OF_FILE
  1874. if test 929 -ne `wc -c <'scripts/build-userinfo'`; then
  1875.     echo shar: \"'scripts/build-userinfo'\" unpacked with wrong size!
  1876. fi
  1877. chmod +x 'scripts/build-userinfo'
  1878. # end of 'scripts/build-userinfo'
  1879. fi
  1880. if test -f 'scripts/get-homes' -a "${1}" != "-c" ; then 
  1881.   echo shar: Will not clobber existing file \"'scripts/get-homes'\"
  1882. else
  1883. echo shar: Extracting \"'scripts/get-homes'\" \(1058 characters\)
  1884. sed "s/^X//" >'scripts/get-homes' <<'END_OF_FILE'
  1885. X#!/bin/sh -
  1886. X#
  1887. X# $Id: get-homes,v 5.1 89/11/17 18:24:15 jsp Exp Locker: jsp $
  1888. X#
  1889. X# Copyright (C) 1989 by Jan-Simon Pendry
  1890. X# All Rights Reserved.
  1891. X#
  1892. X# Grab copy of the password file and get the user names
  1893. X# and home directories from it.
  1894. X# Of course, the entire point is to remove the specific
  1895. X# details from the password file and replace it with /homes/username
  1896. X# so usually you only run this once to get the initial database
  1897. X# sorted out.  After that just edit the database directly...
  1898. X#
  1899. X# Copes with machines running YP.
  1900. X#
  1901. Xrpcinfo=/usr/etc/rpcinfo
  1902. X
  1903. X#
  1904. X# Check for optional first argument
  1905. X#
  1906. Xcase "$#" in
  1907. X0)
  1908. X    file=/dev/stdout;;
  1909. X1)
  1910. X    file="$1";;
  1911. X*)
  1912. X    echo Usage: get-homes "[output-file]" 2>&1
  1913. X    exit 1;;
  1914. Xesac
  1915. X
  1916. X#
  1917. X# Figure out how to get the password file
  1918. X#
  1919. Xif [ -x $rpcinfo ] && ($rpcinfo -p | grep -s ypbind) 2>/dev/null; then
  1920. X    mkdata="ypcat passwd.byname"
  1921. Xelse
  1922. X    mkdata="cat /etc/passwd"
  1923. Xfi
  1924. X
  1925. X#
  1926. X# Possibly redirect stdout
  1927. X#
  1928. Xif [ "$file" != /dev/stdout ]; then
  1929. X    exec > "$file"
  1930. Xfi
  1931. X
  1932. X#
  1933. X# Extract the required information
  1934. X#
  1935. X$mkdata | awk -F: '{printf "%s\t%s\n", $1, $6}'
  1936. END_OF_FILE
  1937. if test 1058 -ne `wc -c <'scripts/get-homes'`; then
  1938.     echo shar: \"'scripts/get-homes'\" unpacked with wrong size!
  1939. fi
  1940. chmod +x 'scripts/get-homes'
  1941. # end of 'scripts/get-homes'
  1942. fi
  1943. if test -f 'u2_2-nfs.h' -a "${1}" != "-c" ; then 
  1944.   echo shar: Will not clobber existing file \"'u2_2-nfs.h'\"
  1945. else
  1946. echo shar: Extracting \"'u2_2-nfs.h'\" \(1400 characters\)
  1947. sed "s/^X//" >'u2_2-nfs.h' <<'END_OF_FILE'
  1948. X/*
  1949. X * $Id: u2_2-nfs.h,v 5.1.1.1 90/01/11 17:21:35 jsp Exp Locker: jsp $
  1950. X *
  1951. X * Copyright (c) 1990 Jan-Simon Pendry
  1952. X * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  1953. X * Copyright (c) 1990 The Regents of the University of California.
  1954. X * All rights reserved.
  1955. X *
  1956. X * This code is derived from software contributed to Berkeley by
  1957. X * Jan-Simon Pendry at Imperial College, London.
  1958. X *
  1959. X * Redistribution and use in source and binary forms are permitted
  1960. X * provided that the above copyright notice and this paragraph are
  1961. X * duplicated in all such forms and that any documentation,
  1962. X * advertising materials, and other materials related to such
  1963. X * distribution and use acknowledge that the software was developed
  1964. X * by Imperial College of Science, Technology and Medicine, London, UK.
  1965. X * The names of the College and University may not be used to endorse
  1966. X * or promote products derived from this software without specific
  1967. X * prior written permission.
  1968. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1969. X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1970. X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1971. X *
  1972. X *    %W% (Berkeley) %G%
  1973. X */
  1974. X
  1975. X#include        <nfs/nfs_gfs.h>
  1976. X#define KERNEL
  1977. X#include        <sys/fs_types.h>
  1978. X#undef  KERNEL
  1979. X
  1980. X#ifndef HOSTNAMESZ
  1981. X#include <nfs/nfs_clnt.h>
  1982. X#endif
  1983. X
  1984. X#include <ufs/ufs_mount.h>
  1985. X
  1986. X#define    ufs_args ufs_specific
  1987. END_OF_FILE
  1988. if test 1400 -ne `wc -c <'u2_2-nfs.h'`; then
  1989.     echo shar: \"'u2_2-nfs.h'\" unpacked with wrong size!
  1990. fi
  1991. # end of 'u2_2-nfs.h'
  1992. fi
  1993. echo shar: End of archive 1 \(of 13\).
  1994. cp /dev/null ark1isdone
  1995. MISSING=""
  1996. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 ; do
  1997.     if test ! -f ark${I}isdone ; then
  1998.     MISSING="${MISSING} ${I}"
  1999.     fi
  2000. done
  2001. if test "${MISSING}" = "" ; then
  2002.     echo You have unpacked all 13 archives.
  2003.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2004. else
  2005.     echo You still need to unpack the following archives:
  2006.     echo "        " ${MISSING}
  2007. fi
  2008. ##  End of shell archive.
  2009. exit 0
  2010. exit 0 # Just in case...
  2011.